<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Bar Race Chart</title>
  <link rel="stylesheet" href="bar_race.css">
</head>
<body>
  <div class="chart-wrapper">
    <div class="chart-container">
      <div id="container"></div>
      
      <!-- 使用说明 -->
      <div class="instructions" style="
        position: absolute;
        bottom: 20px;
        left: 20px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-size: 14px;
        color: #333;
        max-width: 300px;
      ">
        <h4 style="margin: 0 0 10px 0; color: #667eea;">使用说明</h4>
        <ul style="margin: 0; padding-left: 20px;">
          <li><strong>蓝色柱状图</strong>：点击切换蓝色柱状图显示/隐藏</li>
          <li><strong>绿色柱状图</strong>：点击切换绿色柱状图显示/隐藏</li>
          <li><strong>黄色柱状图</strong>：点击切换黄色柱状图显示/隐藏</li>
          <li><strong>红色柱状图</strong>：点击切换红色柱状图显示/隐藏</li>
          <li><strong>青色柱状图</strong>：点击切换青色柱状图显示/隐藏</li>
          <li><strong>深绿色柱状图</strong>：点击切换深绿色柱状图显示/隐藏</li>
          <li><strong>橙色柱状图</strong>：点击切换橙色柱状图显示/隐藏</li>
          <li><strong>暂停/继续</strong>：点击暂停或继续数据更新</li>
        </ul>
        <p style="margin: 10px 0 0 0; font-size: 12px; color: #666;">
          数据每1秒自动更新一次，共35个柱状图
        </p>
      </div>
    </div>
  </div>

  <!-- ECharts library -->
  <script type="text/javascript" src="echarts.min.js"></script>
  
  <!-- Custom JavaScript -->
  <script src="bar_race.js"></script>
</body>
</html>
